package com.tec.security.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tec.security.entity.News;
import com.tec.security.utils.other.LimitPage;

import java.util.Map;

/**
* @author LuLin
* @description 针对表【adminnews】的数据库操作Service
* @createDate 2023-10-21 09:22:50
*/
public interface NewsService extends IService<News> {
  Map<String,Object> listNOAudit(LimitPage limitPage);
  boolean repost(News news);
  Map<String,Object> views(Integer id);
  Map<String,Object> pageList(LimitPage limitPage);
  boolean newsAudit(Integer id,String name);
  boolean newNoAudit(Integer id,String name);
  Map<String,Object> myNews(LimitPage limitPage,String name);
  boolean insertNews(News news);
  boolean deletedNews(int id);
  Map<String, Object> NewsSelectOneByID(int id);
  Map<String,Object> newsSelectThree_Home();
  Map<String,Object> newsListAudit();
  boolean newsEnable(Integer id, String name);
  boolean newsDeactivated(Integer id, String name);
}
